package com.expense.servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;

import com.expense.entity.UserInfo;
/**
 * Servlet基类
 * @author xj
 * */
public class BasicServlet extends HttpServlet {
	public Logger logger = Logger.getLogger(this.getClass());
	
	/**
	 * 得到会话用户对象
	 * **/
	public UserInfo getLoginAdmin(HttpServletRequest request){
			HttpSession session=request.getSession();
			UserInfo  loginAdmin=(UserInfo) session.getAttribute("loginAdmin");
			return loginAdmin;
	}
}
